﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI.WebControls;
using MvcEngine.Core.Validation;
using MvcEngine.Core.Base;

namespace MvcEngine.Core.Content
{
    public class Page : Entity, IUnique
    {
        public Guid Id { get; set; }

        public Guid SiteId { get; set; }

        public Guid? ParentPageId { get; set; }

        public Guid? SkinId { get; set; }

        public Guid? SkinTemplateId { get; set; }

        public string Title { get; set; }

        public string MenuTitle { get; set; }

        public string Header { get; set; }

        public int OrderNumber { get; set; }

        public bool Visible { get; set; }

        public bool VisibleInMenu
        {
            get { return (bool)GetValue("VisibleInMenu", false); }
            set { Fields.SetValue("VisibleInMenu", value); }
        }

        public string Name { get; set; }

        public string Keywords { get; set; }

        public string Description { get; set; }

        public override string Xml { get; set; }

        public Guid? CreatedBy { get; set; }

        public DateTime CreatedDate { get; set; }

        public Guid? ModifiedBy { get; set; }

        public DateTime ModifiedDate { get; set; }
    }
}
